<?php

declare(strict_types=1);

namespace app\store\controller\tools;

use app\store\controller\Controller;
use think\App;
use think\response\Json;
use app\store\model\User as UserModel;

class User extends Controller
{

    /**
     * @return Json
     */
    public function index():Json
    {
        $list = UserModel::with(['avatar'])->where('is_robot','=',1)
            ->field('user_id,mobile,nick_name,avatar_id,gender')
            ->select()->toArray();
        return $this->renderSuccess(compact('list'));
    }





}